package dao.dto;

import util.Util;

public class FormeDto {
        private int _idForme;
        private String _libelleForme;
        
        //Constructeurs
	public FormeDto(int idForme, String libelleForme) {
		setIdForme(idForme);
		setLibelleForme(libelleForme);
        }

        public FormeDto(String libelleForme) {
		setLibelleForme(libelleForme);
        }
        
        //Setters
        public void setIdForme(int idForme) {
		Util.checkPositive(idForme);
                this._idForme = idForme;
	}
	
        public void setLibelleForme(String libelleForme) {
		Util.checkString(libelleForme);
                this._libelleForme = libelleForme;
	}
        
        //Getters 
	public int getIdForme() {
		return _idForme;
	}
	
        public String getLibelleForme() {
		return _libelleForme;
	}
}